package jps_s10996_s7175.result;

import edu.pjwstk.jps.result.IStringResult;

public class StringResult extends SimpleResult<String> implements IStringResult {

	public StringResult(String obj) {
		super(obj);
	}

	@Override
	public String getValue() {
		return (obj);
	}

	@Override
	public String stringme() {
		return "\"" + getValue() + "\"";
	}
        
    @Override
        public String toString(){
            return getValue();   
        }
        
    @Override
	public int compareTo(SingleResult o) {
		if ( o instanceof StringResult ) {
			return this.getValue().compareTo(((StringResult)o).getValue());
		} else {
			return -1;
		}
		
	}

}
